#include "stack.h"

void test_one()
{
	stack Stack;
	stack_init(&Stack);
	stack_push(&Stack, 1);
	stack_push(&Stack, 2);
	stack_push(&Stack, 3);
	stack_push(&Stack, 4);

	printf("%d ", stack_top(&Stack));
	printf("%d \n", stack_size(&Stack));
	stack_pop(&Stack);

	printf("%d ", stack_top(&Stack));
	printf("%d \n", stack_size(&Stack));
	stack_pop(&Stack);

	printf("%d ", stack_top(&Stack));
	printf("%d \n", stack_size(&Stack));
	stack_pop(&Stack);

	printf("%d ", stack_top(&Stack));
	printf("%d \n", stack_size(&Stack));
	stack_pop(&Stack);

	printf("  %d \n", stack_size(&Stack));

	
}


int main()
{
	test_one();
	return 0;
}